﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Student:Person
    {   
        public Student()
        {
            Console.WriteLine("输入编号");
            this.ID = int.Parse(Console.ReadLine());
            Console.WriteLine("输入姓名");
            this.Name = Console.ReadLine();
            Console.WriteLine("输入性别");
            this.Sex = Console.ReadLine();
            Console.WriteLine("输入身份证");
            this.Cardid = int.Parse(Console.ReadLine());
            Console.WriteLine("输入联系方式");
            this.Tel = int.Parse(Console.ReadLine());
            Console.WriteLine("输入专业");
            this.Major = Console.ReadLine();
            Console.WriteLine("输入年级");
            this.Grade = Console.ReadLine();
           
            Dayin1();
        }
        public void Dayin1()
        {
            Console.WriteLine("编号" + this.ID+ "姓名" + this.Name + "性别" +this.Sex+ "身份证号" + this.Cardid + "联系方式" + this.Tel + "专业" + this.Major + "年纪" + this.Grade);
        }
    }
}
